package com.gzhryc.net_marketing.api.protocol.account;

import com.gzhryc.common.NumberTools;
import com.gzhryc.common.api.SecurityResponse;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

public class CloudPayAccountDepositOrderListResponse extends SecurityResponse<CloudPayAccountDepositOrderListResponse.Body> {

    private static final long serialVersionUID = 1L;

    public CloudPayAccountDepositOrderListResponse() {
        this.body = new Body();
    }

    public CloudPayAccountDepositOrderListResponse(Integer code) {
        super(code);
        this.body = new Body();
    }

    public CloudPayAccountDepositOrderListResponse(Integer code, String msg) {
        super(code,msg);
        this.body = new Body();
    }

    public static class Body implements Serializable {

        private static final long serialVersionUID = 1L;

        private Long total;
        private List<OrderItem> orderItemList;

        public Long getTotal() {
            return total;
        }

        public void setTotal(Long total) {
            this.total = total;
        }

        public List<OrderItem> getOrderItemList() {
            return orderItemList;
        }

        public void setOrderItemList(List<OrderItem> orderItemList) {
            this.orderItemList = orderItemList;
        }
    }

    public static class OrderItem {

        private String tradeNo;
        private String title;
        private Integer state;
        private String stateName;
        private Integer payMoney;
        private Date createDate;

        //充值订单
        private Integer payType;
        private String payTypeName;
        private Integer receiptMoney;
        private Date payDate;

        public String getTradeNo() {
            return tradeNo;
        }

        public void setTradeNo(String tradeNo) {
            this.tradeNo = tradeNo;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public Integer getPayType() {
            return payType;
        }

        public void setPayType(Integer payType) {
            this.payType = payType;
        }

        public String getPayTypeName() {
            return payTypeName;
        }

        public void setPayTypeName(String payTypeName) {
            this.payTypeName = payTypeName;
        }

        public Integer getPayMoney() {
            return payMoney;
        }

        public void setPayMoney(Integer payMoney) {
            this.payMoney = payMoney;
        }

        public Integer getReceiptMoney() {
            return receiptMoney;
        }

        public void setReceiptMoney(Integer receiptMoney) {
            this.receiptMoney = receiptMoney;
        }

        public Date getPayDate() {
            return payDate;
        }

        public void setPayDate(Date payDate) {
            this.payDate = payDate;
        }

        public Integer getState() {
            return state;
        }

        public void setState(Integer state) {
            this.state = state;
        }

        public String getStateName() {
            return stateName;
        }

        public void setStateName(String stateName) {
            this.stateName = stateName;
        }

        public Date getCreateDate() {
            return createDate;
        }

        public void setCreateDate(Date createDate) {
            this.createDate = createDate;
        }

        public String getPayMoneyStr(){
            return NumberTools.getMoneyStr(this.payMoney);
        }

        public String getReceiptMoneyStr(){
            return NumberTools.getMoneyStr(this.receiptMoney);
        }
    }
}
